﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;

namespace DFGK_WMS.Model.Models
{
    [Table("TInventoryAdjusts")]
    public partial class TInventoryAdjust
    {
        /// <summary>
        /// ID
        /// </summary>
        public int Id { get; set; }
        /// <summary>
        /// 单据号
        /// </summary>
        public string BillSn { get; set; }
        /// <summary>
        /// 来源单据类型：0-无；1-盘点单；2-手工创建；
        /// </summary>
        public int? SourceType { get; set; }
        /// <summary>
        /// 来源单据号
        /// 
        /// </summary>
        public string SourceSn { get; set; }
        /// <summary>
        /// 货主Id
        /// 
        /// </summary>
        public int? OwnerId { get; set; }
        /// <summary>
        /// 货主
        /// </summary>
        public string OwnerName { get; set; }
        /// <summary>
        /// 仓库Id
        /// </summary>
        public int? WhId { get; set; }
        /// <summary>
        /// 库房名称
        /// </summary>
        public string WhName { get; set; }
        /// <summary>
        /// 库区Id
        /// </summary>
        public int? AreaId { get; set; }
        /// <summary>
        /// 库区名称
        /// 
        /// </summary>
        public string AreaName { get; set; }
        /// <summary>
        /// 仓位Id
        /// </summary>
        public int? LocationId { get; set; }
        /// <summary>
        /// 仓位编码
        /// </summary>
        public string LocationCode { get; set; }
        /// <summary>
        /// 物料Id
        /// 
        /// </summary>
        public int? MaterialId { get; set; }
        /// <summary>
        /// 物料号
        /// </summary>
        public string MaterialCode { get; set; }
        /// <summary>
        /// 物料名称
        /// 
        /// </summary>
        public string MaterialName { get; set; }
        /// <summary>
        /// 调整数量
        /// 
        /// </summary>
        public decimal? Qty { get; set; }
        /// <summary>
        /// 状态：0-创建；1-已审核；2-已调整；3-取消作废；
        /// </summary>
        public int? Status { get; set; }
        /// <summary>
        /// 调整原因
        /// 
        /// </summary>
        public string Reason { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        public string Remark { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime? CreateDate { get; set; }
        /// <summary>
        /// 修改人
        /// </summary>
        public int? ModifyUserId { get; set; }
        /// <summary>
        /// 修改时间
        /// </summary>
        public DateTime? ModifyDate { get; set; }
        public string PalletBarcode { get; set; }
        public int? StocktakeResultId { get; set; }

        /// <summary>
        /// 当前登陆人Id
        /// </summary>
        [NotMapped]
        public int NowUserId { get; set; }

        /// <summary>
        /// 当前登陆人真实姓名
        /// </summary>
        [NotMapped]
        public string NowUserRealName { get; set; }

    }
}
